package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
*
*
* @author quan
* @date 2021-10-29 16:02
*/
 

@Data
@TableName(value = "c2c_order_cancel")
@Accessors(chain = true)
public class C2cOrderCancel {
    @TableId(value = "cancel_id", type = IdType.AUTO)
    private Long cancelId;

    /**
     * 订单id
     */
    @TableField(value = "id")
    private String id;

    /**
     * 用户id
     */
    @TableField(value = "m_id")
    private Long mId;

    /**
     * 发单业务id
     */
    @TableField(value = "publish_order_id")
    private String publishOrderId;

    /**
     * 数量
     */
    @TableField(value = "amount")
    private Integer amount;

    /**
     * 优惠状态/目前不使用
     */
    @TableField(value = "coupon_status")
    private Integer couponStatus;

    /**
     * 优惠价格/目前不使用
     */
    @TableField(value = "coupon_price")
    private BigDecimal couponPrice;

    /**
     * 扣除价格/目前不使用
     */
    @TableField(value = "discount_price")
    private BigDecimal discountPrice;

    /**
     * 活动返现/目前不使用
     */
    @TableField(value = "return_price")
    private BigDecimal returnPrice;

    /**
     * 服务金额
     */
    @TableField(value = "product_price")
    private BigDecimal productPrice;

    /**
     * 支付金额
     */
    @TableField(value = "pay_price")
    private BigDecimal payPrice;

    /**
     * 地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 详细地址
     */
    @TableField(value = "address_detail")
    private String addressDetail;

    /**
     * 地址距离
     */
    @TableField(value = "address_distance")
    private BigDecimal addressDistance;

    /**
     * 联系方式
     */
    @TableField(value = "contact_number")
    private String contactNumber;

    /**
     * 联系名称
     */
    @TableField(value = "contact_name")
    private String contactName;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    private String remarks;

    /**
     * 支付状态 0未支付 1已付款
     */
    @TableField(value = "pay_status")
    private Integer payStatus;

    /**
     * 支付时间
     */
    @TableField(value = "pay_time")
    private LocalDateTime payTime;

    /**
     * 支付流水号
     */
    @TableField(value = "transaction_id")
    private String transactionId;

    /**
     * 预支付id
     */
    @TableField(value = "pre_pay_id")
    private String prePayId;

    /**
     * 1微信 2支付宝
     */
    @TableField(value = "pay_method")
    private Integer payMethod;

    /**
     * 0未接单 1已接单 2进行中 3已完成 4订单取消 5中场取消
     */
    @TableField(value = "order_status")
    private Integer orderStatus;

    /**
     * 退款状态 1退款中 2已退款
     */
    @TableField(value = "refund_status")
    private Integer refundStatus;

    /**
     * 评论状态 0未平论 1已评论
     */
    @TableField(value = "comment_status")
    private Integer commentStatus;

    /**
     * 开始时间
     */
    @TableField(value = "begin_time")
    private LocalDateTime beginTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private LocalDateTime endTime;

    /**
     * 添加时间
     */
    @TableField(value = "add_time")
    private LocalDateTime addTime;

    /**
     * 取消原因
     */
    @TableField(value = "cancel_reason")
    private String cancelReason;

    /**
     * 取消时间
     */
    @TableField(value = "cancel_time")
    private LocalDateTime cancelTime;

    /**
     * 处理时间
     */
    @TableField(value = "handle_time")
    private LocalDateTime handleTime;
}